import { useState } from 'react'
import logo from './logo.svg'
import './App.css'
import Dog from './Dog'
import Computer from './Computer'
import Notification from './Notification'
// 当前有没有未读的消息
function App() {
 const [num, setNum] = useState(0)
 //console.log(typeof num)
 setTimeout(() =>{
   setNum(2)
 },1000)

  return (
    <div className="App">
       {/* 自定义组件 */}
      <Dog></Dog>
      <Computer></Computer>
      <Notification n={num}></Notification>
    </div>
  )
}

export default App
